#ifndef __LAB2_H_
#define __LAB2_H_


typedef nx_struct myData_t{
	nx_uint8_t uid;
	nx_uint8_t counter;
	nx_uint8_t data;	
} myData_t;

enum{
	SENDER_NOT_RTX = 0,
	SENDER_RTX = 1,
	SENDER_WAIT_TX = 2	
};

enum{
	RCV_NOT_RTX = 0,
	RCV_RTX = 1,
	RCV_WAIT_TX = 2	
};

enum{
	APP_START = 0,
	APP_STOP = 1,
	APP_SET_CHANNEL = 3,
	APP_SEND = 5,
	APP_WAIT_STARTDONE = 6,
	APP_WAIT_STOPDONE = 7,
	APP_WAIT_SNDDONE = 8,
	APP_WAIT_CHDONE = 9,
	APP_WAIT_RCV = 10,
	APP_DONE = 11,
};

enum{
	STATE_ON = 0,
	STATE_OFF = 1,
	STATE_TURNING_ON = 2,
	STATE_TURNING_OFF = 3,
	STATE_SND = 4,
	STATE_RTO_SND = 5,
	STATE_RCV = 6,
	STATE_SETTING_CH = 7,
	STATE_WAITING = 8	
};
#endif
